import "./index.less";
import { View, Text } from "@tarojs/components";

type IProps = {
  label: string;
  sub?: string;
};


const Card = (props: IProps) => {
  return (
    <View className="card">
      <View className="card-header">
        <Text className="card-title">{props.label}</Text>
        {props.sub && <Text className="card-label">{props.sub}</Text>}
      </View>
    </View>
  );
};

export default Card;
